home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
bbs
/
maxfreq2.zip
/
REQPCESS.BAT
< prev
next >
Wrap
DOS Batch File
|
1996-06-11
|
2KB
|
59 lines
@echo off
rem
rem This file extracts a file's extension, then calls \MAX\VIRCHECK.BAT.
rem
rem Alternately, you can process files right from this batch file using
rem the supplied variables.
rem
rem eg. SCAN %1%2
rem TOUCH %1%2
rem
rem IMPORTANT NOTE: If you have configured Maximus to send all uploads to
rem one directory, you may need to alter your VIRCHECK.BAT to allow file
rem processing in ANY file area.
rem
rem If in doubt, comment out "call vircheck %1 %PRE% %EXT% %4:\MAX\MISC\"
rem (third last line) until you have time to experiment. :-)
rem
rem The variables passed to this batch files are:
rem
rem %1 Current file area with trailing backslash (%F)
rem %2 File name
rem %3 Current file area without trailing backslash (%Q)
rem %4 Current drive letter (%x)
rem %5 Current task number (%k)
rem
set cmd=%2+
:loop
set orig=%cmd%
if "%cmd%"=="+" goto out
for %%a in (/%orig%) do if "%%a"=="." goto ext
for %%a in (/%cmd%) do set cmd=%%a
for %%a in (/%orig%) do if %%a%cmd%==%orig% set pre=%pre%%%a
goto loop
:ext
set orig=%cmd%
if "%cmd%"=="+" goto out
for %%a in (/%orig%) do if "%%a"=="+" goto out
for %%a in (/%cmd%) do set cmd=%%a
for %%a in (/%orig%) do if %%a%cmd%==%orig% set ext=%ext%%%a
goto ext
:out
for %%a in (/%cmd%) do set cmd=%%a
for %%a in (/%orig%) do if %%a%cmd%==%orig% set ext=%ext%%%a
set cmd=
set orig=
if (%ext%)==() GOTO NOext
if %ext%==.zip set ext=.ZIP
if %ext%==.arj set ext=.ARJ
if %ext%==.zoo set ext=.ZOO
if %ext%==.lzh set ext=.LZH
if %ext%==.pak set ext=.PAK
if %ext%==.arc set ext=.ARC
if %ext%==.lha set ext=.LHA
if %ext%==.rar set ext=.RAR
:noext
call vircheck %1 %PRE% %EXT% MISC\
set pre=
set ext=